package com.ruoyi.legal.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * detail对象 record_details_view
 * 
 * @author xiaoxiao
 * @date 2025-07-01
 */
public class RecordDetailsView extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 刷题记录编号 */
    @Excel(name = "刷题记录编号")
    private String recordNo;

    /** 题目类型 */
    @Excel(name = "题目类型")
    private Long questionType;

    /** 题目内容 */
    @Excel(name = "题目内容")
    private String content;

    /** 选项 */
    @Excel(name = "选项")
    private String options;

    /** 正确答案 */
    @Excel(name = "正确答案")
    private String correctAnswer;

    /** 答案解析 */
    @Excel(name = "答案解析")
    private String explanation;

    /** 难度 */
    @Excel(name = "难度")
    private Long difficulty;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Long isActive;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 用户答案 */
    @Excel(name = "用户答案")
    private String userAnswer;

    /** 是否正确(1正确 0错误) */
    @Excel(name = "是否正确(1正确 0错误)")
    private Long isCorrect;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRecordNo(String recordNo) 
    {
        this.recordNo = recordNo;
    }

    public String getRecordNo() 
    {
        return recordNo;
    }

    public void setQuestionType(Long questionType) 
    {
        this.questionType = questionType;
    }

    public Long getQuestionType() 
    {
        return questionType;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setOptions(String options) 
    {
        this.options = options;
    }

    public String getOptions() 
    {
        return options;
    }

    public void setCorrectAnswer(String correctAnswer) 
    {
        this.correctAnswer = correctAnswer;
    }

    public String getCorrectAnswer() 
    {
        return correctAnswer;
    }

    public void setExplanation(String explanation) 
    {
        this.explanation = explanation;
    }

    public String getExplanation() 
    {
        return explanation;
    }

    public void setDifficulty(Long difficulty) 
    {
        this.difficulty = difficulty;
    }

    public Long getDifficulty() 
    {
        return difficulty;
    }

    public void setIsActive(Long isActive) 
    {
        this.isActive = isActive;
    }

    public Long getIsActive() 
    {
        return isActive;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setUserAnswer(String userAnswer) 
    {
        this.userAnswer = userAnswer;
    }

    public String getUserAnswer() 
    {
        return userAnswer;
    }

    public void setIsCorrect(Long isCorrect) 
    {
        this.isCorrect = isCorrect;
    }

    public Long getIsCorrect() 
    {
        return isCorrect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("recordNo", getRecordNo())
            .append("questionType", getQuestionType())
            .append("content", getContent())
            .append("options", getOptions())
            .append("correctAnswer", getCorrectAnswer())
            .append("explanation", getExplanation())
            .append("difficulty", getDifficulty())
            .append("isActive", getIsActive())
            .append("categoryName", getCategoryName())
            .append("userAnswer", getUserAnswer())
            .append("isCorrect", getIsCorrect())
            .append("createTime", getCreateTime())
            .toString();
    }
}
